//
//  ViewController.m
//  TestNotification
//
//  Created by Sean on 15/8/18.
//  Copyright (c) 2015年 FeiYu. All rights reserved.
//

#import "ViewController.h"
#import "FYPush.h"

@interface ViewController ()
- (IBAction)setTimeAction:(id)sender;
@property (weak, nonatomic) IBOutlet UILabel *labTime;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
     
     NSMutableArray *array = [[NSMutableArray alloc] initWithCapacity:3];
     NSDictionary *n1 = @{
                          @"time":@"11:36:00",
                          @"body":@"测试通知3"
                          };
    [array addObject:n1];
    [FYPush setNotification:array];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)setTimeAction:(id)sender {
    
    NSMutableArray *array = [[NSMutableArray alloc] initWithCapacity:3];
    NSDictionary *n1 = @{
                         @"time":@"11:44:00",
                         @"body":@"测试通知2"
                         };
    NSDictionary *n2 = @{
                         @"time":@"11:44:30",
                         @"body":@"测试通知2"
                         };
    NSDictionary *n3 = @{
                         @"time":@"11:45:00",
                         @"body":@"测试通知3"
                         };

    [array addObject:n1];
    [array addObject:n2];
    [array addObject:n3];
    [FYPush setNotification:array];
}
@end
